using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UIManager : MonoBehaviour
{
    public GameObject ResultPanel;
    public Animator GameReadyFxAnimator;

    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }

    public void ShowResultPanel(int InWinnerIndex)
    {
        ResultPanel.SetActive(true);
        ResultDisplay Res = ResultPanel.GetComponent<ResultDisplay>();
        Res.OnDisplayResult(InWinnerIndex);
    }

    public void ShowGameReadyFx()
    {
        AudioManager.Instance.PlaySE("SE_05_Finish");
        GameReadyFxAnimator.enabled = true;
    }

    public void ShowSeagullFx()
    {
        GameManager.Instance.PauseFrame(5.5f);
        FXManager.Instance.ShowFX(3, GameManager.Instance.camTarget.transform.position, Quaternion.identity);
        //AudioManager.Instance.PlaySE("SE_05_Finish");
    }
}
